﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Loja.Controles.Aplicação;
using Loja.Padrao;

namespace Loja.Telas
{
    public partial class RVendas : PadraoParametroRelatorio
    {
        private Controle controle;        

        public RVendas()
        {
            this.controle = new Controle();
            InitializeComponent();
        }

        private void btnImprimir_Click(object sender, EventArgs e)
        {
            RelatorioVendas f = new RelatorioVendas(controle, dtInicio.Value, new DateTime(dtFim.Value.Year, dtFim.Value.Month, dtFim.Value.Day, 23, 59, 59));
            f.ShowDialog(this);
        }

        private void RVendas_Load(object sender, EventArgs e)
        {
            this.dtInicio.Value = DateTime.Now.Date;
            this.dtFim.Value = DateTime.Now.Date;
        }
    }
}
